#ifndef __MOTOR_H
#define __MOTOR_H
#include "sys.h"
#include "delay.h"

#define STEPPER_MOTOR_PORT GPIOA
#define STEPPER_MOTOR_A_PIN GPIO_Pin_11
#define STEPPER_MOTOR_B_PIN GPIO_Pin_12
#define STEPPER_MOTOR_C_PIN GPIO_Pin_13
#define STEPPER_MOTOR_D_PIN GPIO_Pin_14

void STEPPER_MOTOR_Init(void);
void STEPPER_MOTOR_OFF(void);

void STEPPER_MOTOR_Beat(uint8_t StepIndex, uint8_t Speed);
void STEPPER_MOTOR_Steps(uint8_t Direction, uint16_t Steps, uint8_t Speed);
void STEPPER_MOTOR_Rounds(uint8_t Direction, uint16_t Rounds, uint8_t Speed);

#endif
